package com.wuzu.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单商品表(OrderGoods)实体类
 *
 * @author jsm
 * @since 2023-03-27 10:14:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_order_goods")
public class OrderGoods implements Serializable {
    private static final long serialVersionUID = 829569756003891918L;
    /**
     * 序号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 商品id
     */
    @TableField(value = "good_id")
    private Integer goodId;

    /**
     * 商品数量
     */
    @TableField(value = "number")
    private Integer number;

    /**
     * 商品实付价格
     */
    @TableField(value = "price")
    private Double price;

    /**
     * 促销活动商品id
     */
    @TableField(value = "ag_id")
    private Integer agId;
}
